document.addEventListener('DOMContentLoaded', function()
{
	//页面加载时执行的js代码
});
//获取background.js传过来的信息
chrome.extension.onMessage.addListener(
	function(request, sender, sendResponse) {
		remove();
		sendResponse("祛除成功");
	}
);
function remove(){
	let style = document.createElement('style');
	style.innerHTML = '.editor-watermark{display: none;}';
	document.head.appendChild(style);
	// html2canvas(document.getElementsByClassName("editor-shell")[0]).then(canvas => {
	// 	var base64 = canvas.toDataURL();
	// 	var image = new Image();
	// 	image.src = base64;
	// 	console.log(base64);
	// });
}
// function remove(){
// 	html2canvas(document.querySelector("body")).then(canvas => {
// 		var base64 = canvas.toDataURL();
// 		var image = new Image();
// 		image.src = base64;
// 		console.log(base64);
// 	});
// }